#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CTEXTPANELUI_TEXTPANELUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CTEXTPANELUI_TEXTPANELUI_H

#include "LabelPanelUI.h"

class CTextPanelUI: public CLabelPanelUI
{
public:
	CTextPanelUI(void);
	virtual ~CTextPanelUI(void);
	LPCTSTR GetClass() const;
	UINT GetControlFlags() const;

	bool Activate();

	void SetTextColor(UITYPE_COLOR TextColor);
	void SetBkColor(UITYPE_COLOR BackColor);

	void Event(TEventUI& event);
	SIZE EstimateSize(SIZE szAvailable);
	virtual void DoPaint(HDC hDC, const RECT& rcPaint);

	virtual void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
	//virtual void SetRect(RECT rc);
protected:
	int m_nLinks;
	RECT m_rcLinks[8];
	UINT m_uButtonState;
	UITYPE_COLOR m_TextColor;
	UITYPE_COLOR m_BackColor;

//private:
	//RECT m_rcPrivate;
	//bool m_bIsPrivate;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CTEXTPANELUI_TEXTPANELUI_H
